import React from 'react'
import {HashRouter,Switch,Route} from 'react-router-dom'
import Home from './views/Home'
import About from './views/About'

class Router extends React.Component{
    constructor(props){
        super(props)
        this.state = {

        }
    }

    render(){
        return (
            <div>
                <HashRouter>
                    <Switch>
                        <Route path="/about" component={About} />
                        <Route path="/" component={Home} />
                    </Switch>
                </HashRouter>
            </div>
        )
    }
}

export default Router;